]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
authPrompt: Initialize property in _init()
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 20 Feb 2020 14:57:36 +0000 (15:57 +0100)
committerverdre <jonas@dressler.it>
Thu, 20 Feb 2020 19:08:47 +0000 (19:08 +0000)
This avoid a "reference to undefined property" warning when using
it in a comparison.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1035

js/gdm/authPrompt.js

index 8cb1f305c98dae941e987e4f47aca9df92558502..0cb2462a0ce6f821665671aef8b13b4b278afe12 100644 (file)
@@ -55,6 +55,7 @@ var AuthPrompt = GObject.registerClass({
 
         this._gdmClient = gdmClient;
         this._mode = mode;
+        this._defaultButtonWellActor = null;
 
         let reauthenticationOnly;
         if (this._mode == AuthPromptMode.UNLOCK_ONLY)